import React from "react";
import ReactDOM from "react-dom/client";
import App from './App'
import axios from 'axios'
import './style/weibo.css'

axios.interceptors.response.use(res => {
    const { ok, msg } = res.data;
    if (ok === -1) {
        alert(msg);
        return new Promise(() => { });
    }
    return res.data;
})
React.Component.prototype.$axios = axios;


const root = ReactDOM.createRoot(document.querySelector('#root'))
root.render(<App></App>)